package org.example.modules.user.entry;

/**
 * @Description Chat
 * @Author xiaotian
 * @Date 2025-04-20
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("chat")
public class Chat {
    /**
     * 聊天信息Id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 兼职订单Id
     */
    private Integer orderId;
    /**
     * 发送者Id
     */
    private String senderId;

    /**
     * 接收者Id
     */
    private String receiverId;

    /**
     * 信息内容
     */
    private String content;

    /**
     * 聊天时间
     */
    @TableField("created_at")
    private String createdAt;
}